package com.googlecode.dtools.typeinfo.dao.dfc;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class DfcMap {
    static Map<String, String> map = null;

    // static Map<String, List<String>> map2 = null;


    public static List<String> getTypesNamesByTag(String tag) {

        if (map == null) {
            fillMap();
        }

        List<String> list = new ArrayList<String>();


        for (String typeName : map.keySet()) {
            if (map.get(typeName).equals(tag))
                list.add(typeName);
        }

        return list;

    }


    private static void fillMap() {

        map = new HashMap<String, String>();

        map.put("dmi_type_info", "2e");
        map.put("dm_expression", "55");
        map.put("dm_decision", "4e");
        map.put("kc_filenomenclature_node", "08");
        map.put("dm_jms_config", "12");
        map.put("kc_inform_doc_with_agree_gd", "09");
        map.put("kc_inform_doc_without_appr", "09");
        map.put("kc_org_doc", "09");
        map.put("dmi_load_object_record", "1f");
        map.put("dmc_wfsdrp_double", "08");
        map.put("dmc_workqueue_doc_profile", "08");
        map.put("kc_mail_server", "00");
        map.put("dm_qual_comp", "08");
        map.put("dm_message_container", "09");
        map.put("dmc_metamodel", "0b");
        map.put("dmc_calendar", "00");
        map.put("dmc_tcf_activity_template", "09");
        map.put("dm_reference", "08");
        map.put("kc_mission_project", "09");
        map.put("kc_user", "11");
        map.put("dmc_completed_workflow", "00");
        map.put("kc_org_position", "08");
        map.put("dm_network_location_map", "3e");
        map.put("dm_message_address", "09");
        map.put("dm_policy", "46");
        map.put("dm_xml_custom_code", "09");
        map.put("dm_xfm_form", "09");
        map.put("kc_domain", "00");
        map.put("dm_folder", "0c");
        map.put("dmc_wfsdrp_boolean", "08");
        map.put("dmc_workqueue", "08");
        map.put("dm_plugin", "67");
        map.put("dmi_sequence", "20");
        map.put("dm_xfm_schema", "09");
        map.put("dmi_wf_attachment", "1e");
        map.put("kc_payment", "08");
        map.put("kc_email_item", "08");
        map.put("dm_filestore", "28");
        map.put("dm_ca_store", "08");
        map.put("dm_value_query", "5c");
        map.put("dm_category_class", "0c");
        map.put("dm_router", "38");
        map.put("dmc_config_scope_relation", "37");
        map.put("kc_doc_kindes_dictionary", "0b");
        map.put("kc_correspondent_link", "00");
        map.put("dmc_wfsd_type_info", "08");
        map.put("dmi_linkrecord", "1f");
        map.put("dm_xml_application", "0b");
        map.put("dmc_ts_action_writers", "09");
        map.put("dmi_package", "49");
        map.put("kc_contragent", "08");
        map.put("dmc_aspect_relation", "00");
        map.put("kc_department_user_group", "08");
        map.put("dm_category_assign", "0c");
        map.put("dm_sync_list_relation", "28");
        map.put("kc_user_certificate", "08");
        map.put("kc_correspondent_resident", "00");
        map.put("kc_order_of_day", "09");
        map.put("dm_menu_system", "09");
        map.put("dm_user", "11");
        map.put("dm_validation_descriptor", "08");
        map.put("kc_substituter", "37");
        map.put("dmi_otherfile", "1f");
        map.put("kc_department_dictionary", "08");
        map.put("kc_visa", "09");
        map.put("dm_media_profile", "3a");
        map.put("dm_relation", "37");
        map.put("kc_adviser", "37");
        map.put("dmc_java_library", "0b");
        map.put("dmi_dd_type_info", "69");
        map.put("dm_public_key_certificate", "08");
        map.put("dmc_ts_actions", "09");
        map.put("dmi_replica_record", "26");
        map.put("kc_type_equipment", "08");
        map.put("kc_ord_config", "08");
        map.put("dm_ssa_policy", "08");
        map.put("dm_store", "28");
        map.put("dm_component", "08");
        map.put("dm_xfm_instance", "09");
        map.put("kc_business_kind_finance", "08");
        map.put("dmc_wfsd_element", "08");
        map.put("dmi_dump_object_record", "30");
        map.put("kc_transfer_control_date", "09");
        map.put("kc_grant_request", "09");
        map.put("dmc_module_config", "0b");
        map.put("kc_orgstructure_linked_item", "08");
        map.put("dm_message_archive", "09");
        map.put("dm_group", "12");
        map.put("dm_ftengine_config", "09");
        map.put("kc_crypto_config", "08");
        map.put("dmc_wfsd_element_date", "08");
        map.put("dm_shmeconfig", "3d");
        map.put("dmc_relationship_def", "08");
        map.put("kc_crypto_profile", "08");
        map.put("kc_saved_report", "09");
        map.put("dm_literal_expr", "53");
        map.put("dmc_jar", "09");
        map.put("kc_contract_doc", "09");
        map.put("kc_person_dictionary", "09");
        map.put("dm_message_attachment", "09");
        map.put("dm_script", "08");
        map.put("dm_taxonomy", "3d");
        map.put("kc_projects_mission_doc", "08");
        map.put("kc_mission", "09");
        map.put("dmc_validation_relation", "09");
        map.put("dmc_wfsd_element_boolean", "08");
        map.put("kc_user_profile", "08");
        map.put("kc_visa_old", "09");
        map.put("dmc_wf_package_schema", "09");
        map.put("dm_docset_run", "44");
        map.put("dmc_bps_inbound_instance", "00");
        map.put("kc_inform_doc_without_sign", "09");
        map.put("dmr_containment", "05");
        map.put("dm_xml_style_sheet", "09");
        map.put("kc_states", "0b");
        map.put("dmi_change_record", "33");
        map.put("dm_value_list", "5b");
        map.put("dmc_tcf_activity", "09");
        map.put("dm_client_registration", "08");
        map.put("kc_region_dictionary", "08");
        map.put("dmc_calendar_event", "00");
        map.put("dmi_vstamp", "1e");
        map.put("dmc_wfsd_element_double", "08");
        map.put("kc_certificate", "08");
        map.put("dm_docbase_config", "3c");
        map.put("kc_visa_internal_agree", "09");
        map.put("dmc_xfm_layout", "09");
        map.put("kc_invalid_operation", "00");
        map.put("dmi_dd_common_info", "69");
        map.put("kc_address", "08");
        map.put("dm_extern_file", "55");
        map.put("dmc_wfsd_element_integer", "08");
        map.put("kc_report_int", "09");
        map.put("kc_position_dictionary", "08");
        map.put("dm_key", "59");
        map.put("dm_esign_template", "09");
        map.put("dm_state_type", "08");
        map.put("dm_java", "12");
        map.put("dmc_xfm_adaptor_config", "09");
        map.put("kc_folder", "08");
        map.put("kc_kategory", "08");
        map.put("dmc_workqueue_policy", "08");
        map.put("dmc_class", "00");
        map.put("dm_xfm_resource", "09");
        map.put("kc_document", "09");
        map.put("dm_audittrail_group", "5f");
        map.put("kc_data_report_instance", "09");
        map.put("dm_ldap_config", "08");
        map.put("kc_finance", "08");
        map.put("dm_distributedstore", "6b");
        map.put("dm_smart_list", "08");
        map.put("dmc_workqueue_category", "08");
        map.put("kc_order_doc", "09");
        map.put("kc_signature", "08");
        map.put("dmi_wf_timer", "00");
        map.put("dm_dump_record", "2f");
        map.put("kc_holiday", "00");
        map.put("dm_assembly", "66");
        map.put("dmc_routecase_condition", "08");
        map.put("dm_display_config", "6b");
        map.put("dmi_transactionlog", "20");
        map.put("dm_activity", "4c");
        map.put("dm_domain", "50");
        map.put("kc_correspondent", "0b");
        map.put("dmc_process_parameter", "08");
        map.put("dmc_wfsdrp_date", "08");
        map.put("dm_acl", "45");
        map.put("dm_job", "08");
        map.put("dmc_completed_workitem", "00");
        map.put("dm_aggr_domain", "51");
        map.put("dm_ci_config", "0c");
        map.put("dmc_taskspace_app", "08");
        map.put("kc_visa_executing", "09");
        map.put("kc_filenomenclature", "08");
        map.put("dmc_preset_info", "0b");
        map.put("kc_grant_request_auto", "08");
        map.put("dm_email_message", "2f");
        map.put("kc_country_dictionary", "00");
        map.put("dmi_audittrail_attrs", "00");
        map.put("dm_relation_type", "38");
        map.put("kc_smart_list", "08");
        map.put("dmr_content", "06");
        map.put("kc_performers_redirection", "09");
        map.put("kc_customer_request", "08");
        map.put("dm_extern_free", "55");
        map.put("kc_data_report", "09");
        map.put("dmc_ts_selector", "09");
        map.put("dm_sysprocess_config", "3d");
        map.put("kc_relation", "08");
        map.put("dm_scope_config", "6c");
        map.put("dm_document", "67");
        map.put("dmc_wq_skill_info", "08");
        map.put("dm_docset", "44");
        map.put("dmc_wfsd_element_string", "08");
        map.put("dm_builtin_expr", "5f");
        map.put("kc_incoming_doc", "09");
        map.put("kc_corespondent_type_dict", "0b");
        map.put("dmc_wq_task_skill", "08");
        map.put("dmi_workitem", "4a");
        map.put("dm_foreign_key", "65");
        map.put("dmi_recovery", "1b");
        map.put("dm_migrate_rule", "10");
        map.put("dmc_process_correlation_set", "09");
        map.put("kc_doc_kind", "0b");
        map.put("dm_location", "3a");
        map.put("kc_department", "08");
        map.put("kc_without_reg_doc", "09");
        map.put("kc_mission_calc2", "08");
        map.put("kc_relation_type_link", "00");
        map.put("dm_nls_dd_info", "4f");
        map.put("dmc_wfsdrp_parent", "08");
        map.put("dmc_module", "0b");
        map.put("dmc_wpr_parent", "08");
        map.put("kc_kind_description", "08");
        map.put("dmc_dashboard", "08");
        map.put("kc_base_correspondent", "08");
        map.put("dm_application", "66");
        map.put("kc_contragent_table", "09");
        map.put("kc_ca_certificate", "08");
        map.put("dm_registered", "19");
        map.put("dm_query", "08");
        map.put("dm_note", "4f");
        map.put("dm_mount_point", "3e");
        map.put("dmc_ts_importer", "09");
        map.put("dmi_dd_attr_info", "6a");
        map.put("kc_accessory_agreement_doc", "09");
        map.put("dm_dd_info", "4e");
        map.put("kc_inform_doc", "09");
        map.put("dm_cont_transfer_config", "08");
        map.put("kc_correspondent_dictionary", "08");
        map.put("dm_cond_id_expr", "57");
        map.put("dmi_session", "20");
        map.put("dm_opticalstore", "4f");
        map.put("dm_linkedstore", "08");
        map.put("dm_procedure", "08");
        map.put("kc_mission_calc", "00");
        map.put("dmi_index", "1f");
        map.put("kc_group", "08");
        map.put("dm_state_extension", "08");
        map.put("dm_alias_set", "66");
        map.put("kc_delayed_policy_apply", "08");
        map.put("dm_app_ref", "66");
        map.put("dm_docbaseid_map", "44");
        map.put("dmc_wfsd_element_parent", "08");
        map.put("kc_delayed_changes", "08");
        map.put("dm_cryptographic_key", "08");
        map.put("dm_sysobject", "3d");
        map.put("dm_type", "03");
        map.put("dmc_wfsdrp_string", "08");
        map.put("kc_stamp_dictionary", "0b");
        map.put("dm_extern_url", "55");
        map.put("dmi_dist_comp_record", "69");
        map.put("dm_category", "0c");
        map.put("kc_context", "00");
        map.put("kc_correspondent2", "08");
        map.put("dm_server_config", "3d");
        map.put("dmi_queue_item", "1b");
        map.put("dm_xml_zone", "09");
        map.put("dm_audittrail_acl", "5f");
        map.put("dm_xml_config", "09");
        map.put("kc_org_str_dictionary", "0b");
        map.put("dm_relation_ssa_policy", "37");
        map.put("kc_sysobject", "08");
        map.put("dm_load_record", "53");
        map.put("dm_cond_expr", "57");
        map.put("kc_state_extension_row", "08");
        map.put("kc_project_registrator", "08");
        map.put("kc_contragent_relation", "08");
        map.put("kc_cache_state", "00");
        map.put("kc_content", "09");
        map.put("kc_derivative_doc", "08");
        map.put("kc_order_missionproject_doc", "09");
        map.put("kc_city_dictionary", "08");
        map.put("dm_format", "27");
        map.put("dm_message_route_user_data", "09");
        map.put("dmc_dar", "08");
        map.put("dmc_room", "08");
        map.put("kc_investment_plan", "08");
        map.put("dm_extern_store", "55");
        map.put("dmc_aspect_type", "0b");
        map.put("dmc_constraint_set", "37");
        map.put("dmc_wfsdrp_integer", "08");
        map.put("dm_process", "4b");
        map.put("dm_blobstore", "5f");
        map.put("kc_registrator", "08");
        map.put("dm_audittrail", "5f");
        map.put("kc_document_primary", "09");
        map.put("kc_domain_dictionary", "0b");
        map.put("kc_dictionary", "0b");
        map.put("dmc_act_group_instance", "09");
        map.put("kc_group_contract", "08");
        map.put("dm_workflow", "4d");
        map.put("kc_instr_manage_org_doc", "09");
        map.put("kc_status_question", "0b");
        map.put("dm_dms_config", "6b");
        map.put("kc_scheme_reminders", "08");
        map.put("dm_method", "10");
        map.put("dmc_wf_package_type_info", "09");
        map.put("dm_func_expr", "55");
        map.put("kc_security_profile", "08");
        map.put("kc_mission_inwork", "09");
        map.put("dm_job_sequence", "08");
        map.put("kc_relation_type_dic", "00");
        map.put("kc_need_reserve", "00");
        map.put("dm_staged", "08");
        map.put("kc_doc_contract", "0b");
        map.put("dm_job_request", "08");
        map.put("kc_position", "08");
        map.put("kc_inform_without_sign", "09");
        map.put("kc_internal_doc", "09");
        map.put("dm_outputdevice", "17");
        map.put("dmc_wf_package_skill", "09");
        map.put("kc_agree_document", "09");
        map.put("dmc_composite_predicate", "00");
        map.put("dmi_expr_code", "58");
        map.put("dm_ftindex_agent_config", "09");
        map.put("kc_outgoing_doc", "09");
        map.put("kc_relation_obj", "37");
        map.put("kc_invest_plan_dictionary", "08");
        map.put("kc_contact_person", "08");
        map.put("dm_acs_config", "08");
        map.put("dm_business_pro", "08");
        map.put("dm_webc_target", "5c");
        map.put("kc_report", "09");
        map.put("dm_federation", "55");
        map.put("dmc_ts_selection_methods", "09");
        map.put("dm_locator", "3a");
        map.put("bpm_cutoff", "null");
        map.put("dm_retainer", "38");
        map.put("kc_dictionary_node", "0b");
        map.put("dmi_registry", "26");
        map.put("dmc_wq_user_skill", "08");
        map.put("dmc_preset_package", "09");
        map.put("kc_physical_person_doc", "09");
        map.put("dm_format_preferences", "09");
        map.put("dm_cache_config", "0c");
        map.put("dm_fulltext_index", "09");
        map.put("dm_bocs_config", "5f");
        map.put("dmc_bps_listener", "00");
        map.put("dmi_subcontent", "20");
        map.put("kc_internal_agree_task", "09");
        map.put("dm_value_func", "5c");
        map.put("kc_juristic_person", "09");
        map.put("dm_cabinet", "0c");
        map.put("dm_value_assist", "5c");
        map.put("dm_message_user_data", "09");
        map.put("dmc_workqueue_user_profile", "08");
        map.put("dmc_transition_condition", "09");
        map.put("dmc_validation_module", "09");
        map.put("dm_client_rights", "08");
        map.put("kc_reserve", "09");
        map.put("dm_webc_config", "5c");
        map.put("kc_type_description", "08");
        map.put("dm_attachments_folder", "66");

    }


}

